
package com.google.code.lebar.bean.builders;


import java.util.Map;

import com.google.code.lebar.bean.request.LayarRequest;


public class LayarRequestBuilder
{

    @SuppressWarnings( "unchecked" )
    public static LayarRequest fromParameterMap( Map<?, ?> pParameterMap )
    {
        if ( pParameterMap == null ) throw new NullPointerException( "Cannot build request from null parameter map." );

        LayarRequest tRequest = new LayarRequest();

        tRequest.importValuesFromMap( (Map<Object, Object>) pParameterMap );

        return tRequest;
    }
}
